﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.DAL;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.VO;
using Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS;
using System.Data;

namespace Ket_noi_toi_VPP_bang_mo_hinh_ba_lop.BUS
{
    class UserBusChiTietHDNhap
    {
        private ChiTietHDNhap CTHD;

        public UserBusChiTietHDNhap()
        {
            CTHD = new ChiTietHDNhap();
        }

        public bool Insert(UserVOChiTietHDNhap obj)
        {
            return CTHD.Insert(obj.MAHOADONNHAP,obj.MASANPHAM,obj.SOLUONG,obj.DONGIANHAP);
        }

        public bool Update(UserVOChiTietHDNhap obj)
        {
            return CTHD.Update(obj.MAHOADONNHAP, obj.MASANPHAM, obj.SOLUONG, obj.DONGIANHAP);
        }

        public bool Delete(UserVOChiTietHDNhap obj)
        {
            return CTHD.Delete(obj.MAHOADONNHAP);
        }

        public DataTable SelectAllTable()
        {
            return CTHD.SelectAll();
        }

        public DataTable SelectID(string MaHDNhap)
        {
            return CTHD.SelectID(MaHDNhap);
        }
        
    }
}
